package com.example.test.contract;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * Created by lsl on 2021/2/24.
 */
@Data
@ApiModel(value = "查询用户条件参数")
public class QueryUserParams {
    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "名字")
    @NotBlank(message = "名字不能为空")
    @Size(min = 4, max = 8, message = "名字太长或太短")
    private String name;
    @ApiModelProperty(value = "创建时间")
    private Date createDate;
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;
}
